package ar.com.gals.error;

import java.util.ArrayList;
import java.util.List;

public class GalsException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private List<GalsError> errors = new ArrayList<GalsError>();

	
	public GalsException(String message) {
		super(message);
		this.errors.add(new GalsError(message));
	}
	
	public GalsException(List<GalsError> errors) {
		this.errors = errors;
	}


	public List<GalsError> getErrors() {
		return errors;
	}

	public void setErrors(List<GalsError> errors) {
		this.errors = errors;
	}
}
